package link.jfire.socket.socketserver.exception;

public class ServerStopException extends Exception
{
    /**
     * 
     */
    private static final long               serialVersionUID = 1L;
    /**
     * Pre-allocated exception to avoid garbage generation
     */
    public static final ServerStopException INSTANCE         = new ServerStopException();
    
    /**
     * Private constructor so only a single instance exists.
     */
    private ServerStopException()
    {
    }
    
    /**
     * Overridden so the stack trace is not filled in for this exception for
     * performance reasons.
     * 
     * @return this instance.
     */
    @Override
    public Throwable fillInStackTrace()
    {
        return this;
    }
}
